<template>
    <h1 class="title">新闻头条</h1>
    <div class="link_wrapper">
        <router-link to="/toutiao">头条新闻</router-link>
        <router-link to="/category">分类新闻</router-link>
    </div>
  <router-view/>
</template>

<style lang="stylus" scoped>
.title
  width 100%
  height 50px
  background-color: #ff0036;
  font-size 20px
  text-align: center;
  line-height: 50px;
  color #fff
.link_wrapper
    display flex
    width: 100%;
    height 30px
    justify-content center
    align-items center
  a
    position relative
    box-sizing border-box
    margin 0 10px
    text-decoration none
    color #000
  .router-link-active::after
      position absolute
      bottom -6px
      display block
      content ''
      width 100%
      height 2px
      background-color: red;






</style>
<script>
export default {
    name:"App"
}
</script>
